package com.goalias.controller;


import com.goalias.resp.Result;
import com.goalias.service.ICategoryService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 分类表 前端控制器
 * </p>
 *
 * @author goalias
 * @since 2024-12-12
 */
@RestController
@RequestMapping("/content/category")
public class CategoryController {

    @Resource
    private ICategoryService categoryService;

    @GetMapping("/countList")
    public Result getCategoryCountList(){
        return categoryService.getCategoryCountList();
    }

}
